package com.glsc.ngateway.common.base.domain.mysql.flowable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

@Entity
@Table(name = "ACT_HI_TASKINST")
public class ActHiTaskinst implements Serializable {

    @Id
    @Column(name = "ID_")
    private String id;

    @Column(name = "PROC_DEF_ID_")
    private String processDefinitionId;

    @Column(name = "PROC_INST_ID_")
    private String processInstanceId;

    @Column(name = "NAME_")
    private String title;

    @Column(name = "ASSIGNEE_")
    private String assignee;

    @Column(name = "START_TIME_")
    private LocalDateTime startTime;

    @Column(name = "END_TIME_")
    private LocalDateTime endTime;

    @Column(name = "TENANT_ID_")
    private String tenantId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAssignee() {
        return assignee;
    }

    public void setAssignee(String assignee) {
        this.assignee = assignee;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    public String toString() {
        return "ActHiTaskinst{" +
                "id='" + id + '\'' +
                ", processDefinitionId='" + processDefinitionId + '\'' +
                ", processInstanceId='" + processInstanceId + '\'' +
                ", title='" + title + '\'' +
                ", assignee='" + assignee + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", tenantId='" + tenantId + '\'' +
                '}';
    }
}
